package cn.zc.examination.service.service;

import cn.zc.examination.entity.Dto.ExaminationOptionDto;
import cn.zc.examination.entity.ExaminationOption;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 考试题选项 服务类
 * </p>
 *
 * @author keno
 * @since 2022-02-22
 */
public interface  ExaminationOptionService extends IService<ExaminationOption> {
    /**
     * 创建题目选项
     * @param examinationOption
     * @return
     */
    boolean createExaminationOption(ExaminationOption examinationOption);

    /**
     * 修改题目选项
     * @param examinationOption
     * @return
     */
    boolean updateExaminationOption(ExaminationOption examinationOption);

    /**
     * 根据题删除其选项
     * @param id
     */
    void deleteExaminationOptionByBank(String id);

    /**
     * 查询题选项
     * @param id
     * @return
     */
    List<ExaminationOptionDto> findExaminationOption(String id);
}
